
my_list = [10,15,25]
for i in [0,1,2]:
    my_list[i] *= 2

# 想让原始列表的值改变，需使用元素索引赋值
print(my_list)


my_lst = [100,102,50,25,72]
for j in range(len(my_lst)):
    my_lst[j] *= 2

print(my_lst)


# 计算阶乘
# 对应公式为：1 * 2 * 3 *.....* n
n = int(input('Enter a positive integer: '))
prod = 1
for i in range(1,n+1):
    prod *= i
print(prod)

